#ifndef TIMERBTN_H
#define TIMERBTN_H

#include <QMouseEvent>
#include <QObject>
#include <QPushButton>
#include <QTimer>
class TimerBtn : public QPushButton
{
public:
    TimerBtn(QWidget *parent = nullptr, int count = 10);
    ~TimerBtn();

private:
    QTimer *_timer;
    int _counter;

    // QWidget interface
protected:
    virtual void mouseReleaseEvent(QMouseEvent *event) override;
};

#endif // TIMERBTN_H
